package com.practice.pojo.user.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ArticleDTO {

    @ApiModelProperty("文章id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("作者的用户名， 用户发布的user-名称")
    private String author;

    @ApiModelProperty("文章内容")
    private String content;

    @ApiModelProperty("缩略图，可多张逗号分隔")
    private String pic;

    @ApiModelProperty("分类ID")
    private Integer cateid;

    @ApiModelProperty("文章的标签，可多个逗号分隔")
    private String tags;

    @ApiModelProperty("文章状态，0待审核，1草稿箱，2已发布，3已删除")
    private Integer status;

}
